package com.example.online.controller.historyController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/history")
public class HistoryController {
    /**
     *转至历史记录页面
     */
    @GetMapping("/historylist")
    public String historyList(){
        return "history/historylist";
    }
    /**
     * 转至收藏列表页面
     */
    @GetMapping("/collectedlist")
    public String collectedList()
    {
        return "history/collectedlist";
    }
}
